<template>
  <div class="hello">
    <h1>{{ msg }}</h1>
    <router-link v-bind:to="{name:'Hi1',params:{key:'传递值Hi1'}}">Hi1页面</router-link>
    <router-link :to="{name:'Hi2',params:{key:'传递值Hi2'}}">Hi2页面</router-link>
  </div>
</template>
<script>
export default {
  name: "hi",
  data() { 
    return {
      msg: "Hi,I am Hi",
    };
  },
};
</script>

<style scoped>
</style>